package normal;

import com.lifesting.wfs.Runtime.addon.ExecuteService;
import com.lifesting.wfs.Runtime.addon.IProcessDefinitionLoader;
import com.lifesting.wfs.Runtime.addon.LocalProcessDefinitionLoader;
import com.lifesting.wfs.Runtime.addon.WorkflowException;
import com.lifesting.wfs.gd.ProcessDefinition;

public class BasicRun {
	public static void main(String[] args) {
		IProcessDefinitionLoader ipdl = new LocalProcessDefinitionLoader();
		
		ProcessDefinition pd  =  ipdl.load("gdmodel/test.gd");
		
		ExecuteService es = new ExecuteService(pd);
		try {
			es.start();
		} catch (WorkflowException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
